//
//  PageRequest.m
//  KConnect
//
//  Created on 18/03/09.
//  Copyright 2009 Xtreme Labs Inc. All rights reserved.
//

#define kPageRequest @"pgr"

#define kUID  @"s"
#define kURI  @"u"
#define kIP   @"ip"

#import "KCPageRequest.h"



@implementation KCPageRequest


- (id)initWithURL:(NSString*)url
{
  NSDictionary *required = [NSDictionary dictionaryWithObjectsAndKeys:
                            url,kURI, 
                            nil];
  
  if (self = [super initWithParameters:required])
  {
    
  }
  
  return self;
  
}

- (void)setUID:(NSString*)uid
{
  [self addOptionalParameter:kUID value:uid];
}

- (void)setIP:(NSString*)ip
{
  [self addOptionalParameter:kIP value:ip];
}

- (NSString*)messageType
{
	return kPageRequest;
}

- (NSArray*)requiredParameters
{
  return [NSArray arrayWithObjects:
          kURI,
          nil];
}

- (NSArray*)optionalParameters
{
	return [NSArray arrayWithObjects:
          kUID,
          kIP,
          nil];
}



@end
